package org.lucava.boatskeeper.client.event.user;

import com.google.gwt.event.shared.GwtEvent;

public class EditUserEvent extends GwtEvent<EditUserEventHandler> {
	public static Type<EditUserEventHandler> TYPE = new Type<EditUserEventHandler>();
	private final Integer id;

	public EditUserEvent(Integer id) {
		this.id = id;
	}

	public Integer getId() {
		return id;
	}

	@Override
	public Type<EditUserEventHandler> getAssociatedType() {
		return TYPE;
	}

	@Override
	protected void dispatch(EditUserEventHandler handler) {
		handler.onEditUser(this);
	}
}
